#ifndef __APP_STORAGE_H__
#define __APP_STORAGE_H__

#include "common_config.h"
#include <stdint.h>

/**
 * @brief 存储索引枚举
 *
 */
typedef enum
{
    STORAGE_IDX_MASSAGE_REMEMBER = 0U, /*! 按摩掉电记忆  */
    STORAGE_IDX_MAX,
} storage_idx_e;

result_e app_storage_init(void);
result_e app_storage_write(storage_idx_e idx, uint8_t *data, uint8_t len);
result_e app_storage_read(storage_idx_e idx, uint8_t *buf, uint8_t buf_size);

#endif
